﻿using Qy.Core;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Qy.Scenario;

/// <summary>
/// 用户登录
/// </summary>
public class LoginDto
{
    /// <summary>
    /// 登录名
    /// </summary>
    [Required(ErrorMessage = "请填写登录名")]
    public string UserName { get; set; }
    /// <summary>
    /// 密码
    /// </summary>
    [Required(ErrorMessage = "请填写登录密码")]
    public string PassWord { get; set; }
    /// <summary>
    /// 持久登录
    /// </summary>
    public bool Remember { get; set; }
    /// <summary>
    /// 验证码
    /// </summary>
    public string ValidCode { get; set; }
    /// <summary>
    ///  唯一标识
    /// </summary>
    public string Uuid { get; set; } = "";
}

/// <summary>
/// 当前用户信息
/// </summary>
public class LoginUserInfo : ILoginUserInfo
{
    public int UserId { get; set; }
    public int DeptId { get; set; }
    public int PostId { get; set; }
    public int GroupId { get; set; }
    public string UserName { get; set; }
    public string NickName { get; set; }
    public string DeptName { get; set; }
    public string PostName { get; set; }
    public string PostCode { get; set; }
    public bool Status { get; set; }
    public string GroupName { get; set; }
    public List<int> SystemRole { get; set; }
    public int Sex { get; set; }
    public string Avatar { get; set; }
    public string Phone { get; set; }
}
